<template>
  <div id="tab">
    <van-tabs v-model="activeName" color="#FBC805" background="#F3F6FF">
      <van-tab title="推荐" name="a"><Recommend /></van-tab>
      <van-tab title="附近" name="b"><Nearby /></van-tab>
      <van-tab title="在家赚" name="c"><Inhome /></van-tab>
    </van-tabs>
  </div>
</template>

<script>
import Recommend from "@/components/index/Recommend";
import Nearby from "@/components/index/Nearby";
import Inhome from "@/components/index/Inhome";
export default {
  components: {
    Recommend,
    Nearby,
    Inhome,
  },
  data() {
    return {
      activeName: "a",
    };
  },
};
</script>

<style scoped lang="scss">
#tab {
  width: 380px;
  margin-top: 10px;

  ::v-deep .van-tab {
    line-height: 42px;
    font-size: 26px;
    padding: 0 10px;
    flex: none;
    color: #999999;
    z-index: 1;
  }
  ::v-deep .van-tab--active {
    font-size: 42px;
    color: black;
  }
  ::v-deep .van-tabs__line {
    width: 86px;
    height: 16px;
    border-radius: 15px;
    background-color: #fbc805 !important;
    z-index: 0;
  }
}
</style>
